#!/bin/bash
dirname=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/3d.TXT http://www.17500.cn/getData/3d.TXT
tail -n 100 $dirname/history/3d.TXT > $dirname/history/3d-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/ssq.TXT http://www.17500.cn/getData/ssq.TXT
tail -n 100 $dirname/history/ssq.TXT > $dirname/history/ssq-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/7lc.TXT http://www.17500.cn/getData/7lc.TXT
tail -n 100 $dirname/history/7lc.TXT> $dirname/history/7lc-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/p3.TXT http://www.17500.cn/getData/p3.TXT
tail -n 100  $dirname/history/p3.TXT> $dirname/history/p3-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/p5.TXT http://www.17500.cn/getData/p5.TXT
tail -n 100 $dirname/history/p5.TXT> $dirname/history/p5-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/dlt.TXT http://www.17500.cn/getData/dlt.TXT
tail -n 100 $dirname/history/dlt.TXT> $dirname/history/dlt-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/7xc.TXT http://www.17500.cn/getData/7xc.TXT
tail -n 100 $dirname/history/7xc.TXT> $dirname/history/7xc-latest.TXT
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o $dirname/history/t22x5.TXT http://www.17500.cn/getData/t22x5.TXT
